//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tool.btn;

import com.tool.role.RoleData;
import com.tool.tcpimg.UIUtils;
import org.apache.commons.lang.StringUtils;
import org.come.Frame.ZhuFrame;
import org.come.Jpanel.FanfanleJpanel;
import org.come.Jpanel.RewardHallJpanel;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;
import org.come.until.FormsManagement;
import org.come.until.LotteryFromServerUntil;

import java.awt.*;
import java.awt.event.MouseEvent;
import java.math.BigDecimal;

public class LotteryNineBtn extends MoBanBtn {
    private FanfanleJpanel fanfanleJpanel;
    public static boolean isXIPAI = false;
    public LotteryNineBtn(String iconpath, int type, String text, FanfanleJpanel fanfanleJpanel) {
        super(iconpath, type, UIUtils.COLOR_WHITE1);
        this.setText(text);
        this.setVerticalTextPosition(0);
        this.setHorizontalTextPosition(0);
        this.fanfanleJpanel = fanfanleJpanel;
    }

    public void chooseyes() {
    }

    public void chooseno() {
    }

    public void nochoose(MouseEvent e) {
        String txt = this.getText();
        if(StringUtils.isNotEmpty(txt)){
            if(txt.equals("洗牌")){
                isXIPAI = true;
                LotteryFromServerUntil.startLottery();
            }else if(txt.equals("放弃")){
                FormsManagement.HideForm(999);
                LotteryFromServerUntil.drop();
            }
        }
    }
}
